package com.hengtian.roastwall.listener;

import com.hengtian.roastwall.listener.myEvent.TestApplicationEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TestListener implements ApplicationListener<TestApplicationEvent> {
    @Override
    public void onApplicationEvent(TestApplicationEvent testApplicationEvent) {
        log.info(testApplicationEvent.getEventInfo());
    }
}
